<?php

namespace app\api\model;

use think\Model;

class ParentStudents extends Model
{
    public static function getStudentIds($parent_id)
    {
        return self::where('parent_id', $parent_id)->column('student_id');
    }

    public static function getParentIds($student_id)
    {
        return self::where('student_id', $student_id)->column('parent_id');
    }
}
